<div class="row-fluid">
    <div class="span6">
        <h3 class="heading">Listado de Alumnos</h3>
        <!--<table class="table table-striped table-bordered dTableR" id="dt_a"> -->
        <table class="table table-striped table-bordered dTableR" id="dt_a"> 
            <thead>
                <tr>               
                    <th>Apellidos</th>
                    <th>Nombre</th>                                                              
                    <th>Acciones</th>     
                </tr>
            </thead>
            <tbody>
                <?php foreach ($alumnos as $a): ?>
                    <?php $idAlumno = $a['Alumno']['id']; ?>
                    <tr>                         
                        <td>
                        <?php echo $a['Alumno']['ap_paterno']; ?>
                        &nbsp;<?php echo $a['Alumno']['ap_materno']; ?>
                        </td>                        
                        <td><?php echo $a['Alumno']['nombre']; ?></td>                                                
                        <td>                                                        
                            <?php
                            echo $this->Ajax->link(
                                    $this->Html->image("iconos/detalle.png"), 
                                    array(
                                        'controller' => 'alumnos', 
                                        'action' => 'ajaxinscribe', $idAlumno
                                    ), 
                                    array(
                                        'update' => 'cargaDatos',
                                        'title' => 'Detalle del Alumno',
                                        'escape' => false
                                   )
                            );
                            ?>
                        </td>
                    </tr>
                    <?php
                endforeach;
                ?>
            </tbody>
        </table>

    </div> 
    
    <div class="span6">
            <div id="cargaDatos">
                Seleccione un alumno
			</div>
            <div id="cargaDatos2"></div>
    </div>    
</div>
<?php //echo $this->Html->script('jquery-1.8.3.min'); ?>


<!-- sidebar -->
<?php echo $this->element('sidebar/aluinscribe'); ?>
<!-- fin sidebar -->
<?php //llamamos scripts tablas  ?>
<?php echo $this->element('jstablas'); ?>

<?php //llamamos scripts formularios  ?>
<?php echo $this->element('jsformularios'); ?>